﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static L.M.Review.ErrorCodeEnum.EnumInfor;

namespace L.M.Review.Domain.Entity
{

    /// <summary>
    /// 流程节点表
    /// </summary>
    [SugarTable("process_nodes")]
    public class process_nodes
    {
        /// <summary>
        /// 流程节点编号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnDescription = "流程节点编号", Length = 200)]
        public string? process_nodes_number { get; set; }

        /// <summary>
        /// 节点名称
        /// </summary>
        [SugarColumn(ColumnDescription = "节点名称", Length = 200, IsNullable = true)]
        public string? process_nodes_name { get; set; }

        /// <summary>
        /// 操作节点角色编号
        /// </summary>
        [SugarColumn(ColumnDescription = "操作节点角色编号", Length = 200, IsNullable = true)]
        public string? process_nodes_role_number { get; set; }

        /// <summary>
        /// 操作节点角色名称
        /// </summary>
        [SugarColumn(ColumnDescription = "操作节点角色名称", Length = 200, IsNullable = true)]
        public string? process_nodes_role_name { get; set; }

        /// <summary>
        /// 上一个节点
        /// </summary>
        [SugarColumn(ColumnDescription = "上一个节点", Length = 200, IsNullable = true)]
        public string? upper_node { get; set; }

        /// <summary>
        /// 下一个节点
        /// </summary>
        [SugarColumn(ColumnDescription = "下一个节点", Length = 200, IsNullable = true)]
        public string? lower_node { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnDescription = "创建时间")]
        public DateTime creation_time { get; set; } = DateTime.Now;

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnDescription = "创建人", Length = 200,IsNullable =true)]
        public string? creation_name { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
        public DateTime? process_date { get; set; } = DateTime.Now;


        /// <summary>
        /// 系统编号
        /// </summary>
        [SugarColumn(ColumnDescription = "系统编号", IsNullable = true)]
        public string? passe_system_number { get; set; }
    }
}
